package com.baidu.Chapter02;

import java.util.Scanner;

public class ex2_9 {
    public static void main(String[] args) {
        System.out.print("Enter v0, v1, and t：");
        Scanner sc=new Scanner(System.in);
        double v0=sc.nextDouble();
        double v1=sc.nextDouble();
        double t=sc.nextDouble();
        System.out.printf("The average acceleration is %.4f\n",(v1-v0)/t);

    }
}
